package com.winglish.as3.exam.toeicspeaking.vo 
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	
	import com.winglish.as3.utils.ObjectUtil;
	
	/**
	 * ...
	 * @author charmjin
	 */
	public class TSCommonVo extends MovieClip 
	{
		protected var qTxt:TextField;
		protected var secTxt:TextField;
		protected var boxMc:MovieClip;
		
		public function TSCommonVo() 
		{
			
		}
		
		/**
		 * 버튼 매핑.
		 * @param	path
		 */
		protected function mapping(path:MovieClip):void {
			var arr:Array = new Array();
			arr = ObjectUtil.traceDisplayList(path);
			for each (var i:String in arr) 
			{
				try {
					if (i.indexOf("Txt") != -1 ) {
						this[i] = new TextField();
					}
					this[i] = path[i];
				}catch (e:Error) {
					//trace(i + " not find MovieClip" );
				}
			}
		}
	}

}